{if $node.parent.class_identifier|eq('video_page')}
<h1>{$node.parent.name|wash}</h1>
<div class="vid-full">
{else}
<h1>{$node.parent.name|wash}</h1>
{/if}
<div class="attribute-html">
{$node.data_map.embed.content}
</div>
{if $node.parent.class_identifier|eq('video_page')}
<h2>{$node.name|wash}</h2>
{attribute_view_gui attribute=$node.data_map.body}
</div>
{def $videos = fetch_alias( 'children', hash( 'parent_node_id', $node.parent.node_id,
                                              'sort_by', $node.parent.sort_array,
                                              'class_filter_type', 'include',
                                              'class_filter_array', array('embed_video') ) )}
<div class="vid-section">
{foreach $videos as $index => $video}
{node_view_gui view='line' content_node=$video}
{if and( $index|inc|mod(2)|eq(0), le($index, $videos|count|sub(2)) )}
</div><div class="vid-section">
{/if}
{/foreach}
</div>
{else}
{attribute_view_gui attribute=$node.data_map.body}
{/if}